module.exports = {
  /**
   * Application configuration section
   * http://pm2.keymetrics.io/docs/usage/application-declaration/
   */
  apps : [
    // First application
    {
      name      : 'antifraudgraph',
      script    : 'app5.js',
      watch     : false,
      log_date_format : "YYYY-MM-DD HH:mm Z",
      error_file  : "/home/share/XanalyticsTest/log/pm2",
      out_file    : "/home/share/XanalyticsTest/log/pm2",
      pid_file    : "/home/share/XanalyticsTest/log/pm2",
      env: {
        "NODE_ENV": "production"
      },
      env_production : {
        "NODE_ENV": "production"
      }
    }
  ],

  /**
   * Deployment section
   * http://pm2.keymetrics.io/docs/usage/deployment/
   */
  // deploy : {
  //   production : {
  //     user : 'admin',
  //     host : '10.139.57.168',
  //     ref  : 'origin/master',
  //     repo : 'http://iZbp170ngpes9em67vveioZ/sushuqing/XalgorithmDev.git',
  //     path : '/home/share/XanalyticsTest',
  //     'post-deploy' : 'npm install && pm2 reload ecosystem.config.js --env production'
  //   },
  //   dev : {
  //     user : 'node',
  //     host : '212.83.163.1',
  //     ref  : 'origin/master',
  //     repo : 'git@github.com:repo.git',
  //     path : '/var/www/development',
  //     'post-deploy' : 'npm install && pm2 reload ecosystem.config.js --env dev',
  //     env  : {
  //       NODE_ENV: 'dev'
  //     }
  //   }
  // }
}
